<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js</title>
</head>
<body>
	
	<h1>aaaaaaaaaaaaaaaaaaa</h1>

<script>
	
	//sw=screen.width;//获取当前电脑的分辨率宽1920px
	//sw=screen.height;//获取当前电脑的分辨率宽1080px
	//sw=screen.availWidth;//有效的宽1920px
	sw=screen.availHeight//有效的高1040px 减去底部菜单栏的高度
	alert(sw);
	
</script>
</body>
</html>